public class Work8 {
    public static void main(String[] args) {
        int[] a = {22, 24, 76, 12, 21, 33};
        int max = a[0];
        for (int i = 0; i < a.length; i++) {
            if (a[i] > max) {
                max = a[i];
            }
        }
        System.out.println(max);
    }
}
